home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 18312 < prev    next >
Encoding:
Text File  |  1996-08-05  |  3.8 KB  |  99 lines

  1. Newsgroups: comp.lang.c++,comp.os.ms-windows.nt.misc,comp.os.ms-windows.programmer.misc,comp.os.ms-windows.programmer.tools.mfc,comp.os.ms-windows.programmer.tools.misc
  2. Path: bath.ac.uk!uwe-bristol!usenet
  3. From: s-hewitt@uwe.ac.uk (Shaun Hewitt)
  4. Subject: REPOST: MS VC++ 4.0, Possible Bug??? Read this one :)
  5. Content-Type: Text/Plain; charset=ISO-8859-1
  6. Message-ID: <1996Apr19.113932.22208@pat.uwe.ac.uk>
  7. Summary: REPOST: MS VC++ 4.0, Possible Bug??? 
  8. Keywords: Class Project Wizard Bug Dialog
  9. Sender: usenet@pat.uwe.ac.uk (uwe nntp usenet poster)
  10. Nntp-Posting-Host: usenet@pat.uwe.ac.uk (uwe nntp usenet poster)
  11. Organization: IASEL
  12. X-Newsreader: WinVN 0.99.5
  13. Mime-Version: 1.0
  14. Date: Fri, 19 Apr 1996 11:39:32 GMT
  15.  
  16. >>Sorry for the repost, my fingers slipped and I sent the
  17. posting before I had completed it - *Duurrrr* >:)
  18.  
  19.  
  20. MFC VC++ 4.0, Possible Bug??? in Class Wizard or Project Wizard
  21. ===============================================================
  22.  
  23. Hi, I'm not sure if this is actually a bug or something that
  24. I am doing wrong so I would apprieciate some feedback on this one
  25. since Microsoft are pritty usless at support or require shit loads
  26. of money to answer a simple question.
  27.  
  28. The problem seems to occur when I use the class wizard to produce 
  29. skeleton code for a 'Dialog Based' application. Combined with the 
  30. resource editor and 'Class Wizard'. Basically after adding the 
  31. controls to the main application dialog, the class wizard refuses 
  32. to acknowledge there existance.
  33.  
  34. I am running on a 486DX2- 66 machine, plenty of RAM and plenty of
  35. HDrive space. (Not that any of this should make a difference), 
  36. what might though is the fact I am running Windows NT - I have yet
  37. to try this out in Win95. 
  38.  
  39. Here is a sequence that will demonstrate the problem:
  40.  
  41. First stage - Creating Workspace
  42. =================================
  43. 1  Having started MS VC++ 4.00 Select 'File/New' from menu
  44. 2  Select 'Project Workspace' From dialog and 'OK'
  45. 3  Select 'MFC Application(exe)', name: TestDlg 'CREATE'
  46. 4  MFC AppWizard Step 1 ~ Select 'Dialog Based', 'Next>'
  47. 5  MFC AppWizard Step 2 ~ unchanged, 'Next>'
  48. 6  MFC AppWizard Step 3 ~ Select 'Statically Linked Library', 'Next >'
  49. 7  MFC AppWizard Step 4 ~ Select 'Finish'
  50.  
  51. Edit the Resource
  52. =================
  53. 8  Select 'Resource View' in IDE
  54. 9  Expand Dialog and select main application dialog, 
  55.    in this case IDD_TESTDLG_DIALOG
  56. 10 Delete the 'TODO: Place dialog controls here' static text box
  57. 11 Add a 'List Control' and change its ID in properties to IDC_LISTCTRL
  58.    Select the styles in the properties and change view to 'Report' 
  59. 12 Add an 'Edit Box' and change its ID in properties to IDC_EDITBOX
  60. 13 Add a 'Button' and change its in properties ID ~ IDC_ADD, Caption ~ &Add
  61.  
  62.  
  63. ...And Heres the Problem!!!!
  64. ============================
  65. 14 Select the ClassWizard...
  66.  
  67. 15 In MFC ClassWizard 'Message Maps' IDC_LISTCTRL has no Messages ????
  68.  
  69. 16 Selecting 'Member Variables' the IDC_ADD, IDC_EDITBOX and IDC_LISTCTRL
  70.    are missing from the 'Control ID's' list.
  71.  
  72.  
  73. What is going on??? has anyone else experienced these problems???
  74. Anyone got any ideas??? insights??? anything??? 
  75.  
  76. I can sort the Member Variables by manually adding the code to the class
  77. definition and the DoDataExchange() after which they magically appear
  78. in the Class Wizard.
  79.  
  80. Unfortunatly I have not been so successful with the Messages... 
  81.  
  82. Well, if ya have any soltuions ideas or interesting reports let me know.
  83.  
  84. Thanx,
  85.  
  86. Shaun Hewitt
  87.  
  88. IASeL, University of the West of England
  89. email ~ s-hewitt@uwe.ac.uk
  90. www   ~ http://gate.uwe.ac.uk:8000/eng/ias/ias.html
  91.  
  92. ************************* NOTE ********************************
  93. This information is for free use by anyone other than MicroSoft,
  94. :p, if they want to use it they can pay me รบ60 first since
  95. that is what it would have cost to present the question to them. 
  96.  
  97. ***************************************************************
  98.  
  99.